﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;
using ReporterControlLibrary.Models;

namespace Reporter.Controls
{

    public class ProjectTabControlContentTemplateSelector : DataTemplateSelector
    {
        public DataTemplate ProjectHomeTemplate
        {
            get;
            set;
        }

        public DataTemplate ProjectTemplate
        {
            get;
            set;
        }

        public override System.Windows.DataTemplate SelectTemplate(object item, System.Windows.DependencyObject container)
        {
            if (item is ProjectHome)
                return ProjectHomeTemplate;
            else
                return ProjectTemplate;
        }
    }
}
